package com.pand.util;

import java.math.BigDecimal;

/**
 * Created by lh on 2017/3/9.
 */
public class BillingStrategy {
    private long id;
    /**
     * 时间周期
     */
    private long period;
    /**
     * 单价
     */
    private double price;
    /**
     * 时间上限
     */
    private long topTime;
    /**
     * 价格上限
     */
    private double topPrice;
    /**
     * 免费时间周期
     */
    private long freeTime;
    /**
     * 车型
     */
    private CarType carType;

    public BillingStrategy() {
    }

    public BillingStrategy(long id, long period, double price, long topTime, double topPrice, long freeTime, CarType carType) {
        this.id = id;
        this.period = period;
        this.price = price;
        this.topTime = topTime;
        this.topPrice = topPrice;
        this.freeTime = freeTime;
        this.carType = carType;
    }

    public long getPeriod() {
        return period;
    }

    public void setPeriod(long period) {
        this.period = period;
    }

    public long getTopTime() {
        return topTime;
    }

    public void setTopTime(long topTime) {
        this.topTime = topTime;
    }

    public long getFreeTime() {
        return freeTime;
    }

    public void setFreeTime(long freeTime) {
        this.freeTime = freeTime;
    }

    public CarType getCarType() {
        return carType;
    }

    public void setCarType(CarType carType) {
        this.carType = carType;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getTopPrice() {
        return topPrice;
    }

    public void setTopPrice(double topPrice) {
        this.topPrice = topPrice;
    }
}
